Built-up Index · Urban Mapping (SWIR2)

NDBI_SWIR – Normalized Difference Built-up Index (SWIR2)

NDBI_SWIR is a variant of the Normalized Difference Built-up Index that uses the second short-wave infrared band (SWIR2) instead of SWIR1. It enhances dense built-up areas by exploiting the strong reflectance of urban materials in SWIR2 relative to NIR.
نسخة من مؤشر NDBI تعتمد على الحزمة تحت الحمراء قصيرة الموجة الثانية (SWIR2) لزيادة تمييز الكتلة العمرانية الكثيفة عن الغطاء النباتي والمناطق الأخرى.

1. Scientific Definition

The NDBI_SWIR index uses the higher reflectance of built-up and impervious surfaces in the SWIR2 region compared to NIR to highlight urban areas. By shifting from SWIR1 to SWIR2, the index can emphasize very dry, highly reflective urban and bare surfaces.

Formula

The normalized difference form is:

NDBI_SWIR = (SWIR2 − NIR) / (SWIR2 + NIR) Range: −1 → +1

  • NIR – Near InfraRed reflectance
  • SWIR2 – Second Short-Wave InfraRed band reflectance

Typical Interpretation

NDBI_SWIRInterpretation
< 0 Water, dense vegetation, non-built-up surfaces
0 – 0.2 Mixed pixels / low-density built-up / bare soil
0.2 – 0.4 Moderate built-up / suburban or industrial fringe
> 0.4 Dense urban / highly impervious, very dry surfaces

Thresholds are indicative and should be tuned using local reference data, especially in arid regions where bright bare soil may show high SWIR2 reflectance.

Main Applications

  • Urban expansion mapping using SWIR2–NIR contrast
  • Separation of dense built-up areas from vegetated and moist surfaces
  • Impervious surface and urban heat island related studies
  • Supporting land use / land cover classification (urban classes)

2. Data & Bands

Sentinel-2 (Recommended)

  • NIR: B8 (~842 nm)
  • SWIR2: B12 (~2190 nm)

Landsat 8 / 9

  • NIR: B5
  • SWIR2: B7

Best Practices

  • Use surface reflectance (SR) imagery with atmospheric correction.
  • Mask clouds & cloud shadows using QA bands or cloud probability layers.
  • Combine NDBI_SWIR with NDVI / MNDWI / classic NDBI to better separate urban, bare soil and water.
  • Use region-specific thresholds or supervised classification for final maps.

Suggested Palette

[ "#08141f", "#253858", "#3c6ea6", "#6baed6", "#b3e2ff", "#f7fbff" ]

3. Google Earth Engine Code – NDBI_SWIR (SWIR2–NIR)

// NDBI_SWIR using Sentinel-2 SR
// NDBI_SWIR = (SWIR2 - NIR) / (SWIR2 + NIR)
// Here: SWIR2 = B12, NIR = B8

var roi = geometry;   // Draw AOI as 'geometry'
Map.centerObject(roi, 11);

// 1. Load Sentinel-2 surface reflectance
var s2 = ee.ImageCollection("COPERNICUS/S2_SR")
  .filterBounds(roi)
  .filterDate("2023-01-01", "2023-12-31")
  .filter(ee.Filter.lt("CLOUDY_PIXEL_PERCENTAGE", 20))
  .select(["B8","B12"]); // NIR, SWIR2

// 2. Median composite
var img = s2.median().clip(roi);

// 3. Compute NDBI_SWIR
var ndbi_swir = img.expression(
  "(S2 - N) / (S2 + N)",
  {
    "S2": img.select("B12"), // SWIR2
    "N":  img.select("B8")   // NIR
  }
).rename("NDBI_SWIR");

// 4. Visualization
var vis = {
  min: -1,
  max:  1,
  palette: ["#08141f","#253858","#3c6ea6","#6baed6","#b3e2ff","#f7fbff"]
};

Map.addLayer(ndbi_swir, vis, "NDBI_SWIR (SWIR2-NIR)");

// Optional: threshold for built-up (e.g. NDBI_SWIR > 0.2)
var builtup = ndbi_swir.gt(0.2).selfMask();
Map.addLayer(
  builtup,
  {palette:["#ffcc00"]},
  "Built-up Mask (NDBI_SWIR > 0.2)",
  false
);

// 5. Export NDBI_SWIR as GeoTIFF
Export.image.toDrive({
  image: ndbi_swir,
  description: "NDBI_SWIR_Export",
  fileNamePrefix: "NDBI_SWIR_SWIR2_NIR",
  region: roi,
  scale: 20,        // Based on SWIR band resolution
  crs: "EPSG:4326",
  maxPixels: 1e13
});